import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SServerKey } from "./SServerKey";
import { EUpdateType } from "./EUpdateType";
type int = number;
//class SCrossMassacreCountryMoneyUpdate
    
    export  class SCrossMassacreCountryMoneyUpdate extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossMassacreCountryMoneyUpdate();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.serverKey.__write(arg1);
            this.updateType.__write(arg1);
            arg1.writeInt(this.updateValue);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.serverKey = new SServerKey();
            this.serverKey.__read(arg1);
            this.updateType = EUpdateType.__read(arg1);
            this.updateValue = arg1.readInt();
            return;
        }

        public /* const */_type: int=869;

        public /* var */serverKey: SServerKey;

        public /* var */updateType: EUpdateType;

        public /* var */updateValue: int;

        public static /* var */_regist: SCrossMassacreCountryMoneyUpdate;
    }

            SCrossMassacreCountryMoneyUpdate._regist = new SCrossMassacreCountryMoneyUpdate(true);
        